package com.rc.saas.tenant.service.enterprise;

import com.github.pagehelper.PageInfo;
import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.enterprise.RcEnterpriseLevelSettingMapper;
import com.rc.saas.tenant.model.enterprise.RcEnterpriseLevelSetting;
import com.rc.saas.tenant.model.enterprise.RcEnterpriseLevelSettingExample;

import java.math.BigDecimal;
import java.util.List;

public interface RcEnterpriseLevelSettingService extends BaseService<String, RcEnterpriseLevelSetting, RcEnterpriseLevelSettingExample, RcEnterpriseLevelSettingMapper> {
    PageInfo<RcEnterpriseLevelSetting> listPageLevelSetting(String levelName, Integer pageNo, Integer pageSize);

    void updateLevelSetting(RcEnterpriseLevelSetting enterpriseLevelSetting);

    void addLevelSetting(RcEnterpriseLevelSetting enterpriseLevelSetting);

    List<RcEnterpriseLevelSetting> listLevel();

    /** 符合累计充值额的等级 */
    RcEnterpriseLevelSetting selectLevelBetweenInterval(BigDecimal money);
}
